//
// Created on 2025/8/19.
//
// Node APIs are not fully supported. To solve the compilation error of the interface cannot be found,
// please include "napi/native_api.h".

#ifndef MYAPPLICATION_CANVAS_H
#define MYAPPLICATION_CANVAS_H

#include <vector>
#include <cstdint>
#include <utility>

struct Canvas {
    uint32_t height{0};
    uint32_t width{0};
    uint32_t drawableHeight{0};
    uint32_t drawableWidth{0};
    std::pair<float, float> realOrigin{0,0};
    
    void SetCanvasSize(uint32_t height, uint32_t width);
    std::vector<std::pair<uint32_t, uint32_t>> GetDrawableArea();
};

#endif //MYAPPLICATION_CANVAS_H
